<?php
	session_start();
	mysql_connect("localhost", "sapmenet_admin", "a1s2d3f4g5h6j7") or die ("Problem with datebase");
	mysql_select_db("sapmenet_users");
	$you = $_SESSION['JID'];
	$checkForNew = mysql_query("SELECT `id` FROM `chat` WHERE `seen`=0 AND `to`={$you}");
	if(mysql_num_rows($checkForNew)<1)
	{	
		echo("HUI");
	}
	else
	{
		echo("zaek");
	}
?>